<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<%@include file="/commons/commonList.jsp" %>

<script type="text/javascript">

	function init(){
		parent.window.document.all('backRecordList').style.height=document.body.scrollHeight;
	}
	function setCurrentId(id){

	if('${MenuFlat}'=='false'){
	return false;
	}
	parent.setCurrentBackRecordId(id);
	}

	function refleshFrame(){
	parent.refleshFrame();
	}

	function rightMenu(event){

	if('${MenuFlat}'=='false'){
	return false;
	}

	return ShowContextMenu(event,'quick_rightmenu');
	}

</script>
</head>
<body onload="init();">
<div style="height:310px;overflow:auto;">
	<ec:ceTable items="backRecordList"
			autoIncludeParameters="true"
			var="backRecordItem"
			action="${ctx}/customerService_feedbackRecordAction.do?method=findFeedbackRecordPage"
			rowsDisplayed="${pageSize}"
			width="100%"
			view="pmsview"
			styleClass="gridData"
			>
			<ec:ceRow styleClass="grid" onclick="setCurrentId('${backRecordItem.keyword}');" ondblclick="parent.backRecordDetail();return false" onContextMenu="return rightMenu(event);">
				<ec:ceColumn headerCell="pmsHeadrCell" width="12%" property="dispatchNo" title="派工单号"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="8%" property="executant" title="执行人"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="8%" property="deptName" title="责任部门"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="11%" property="content" title="反馈内容"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="8%" property="validity" title="状态">
				<c:if test="${backRecordItem.validity=='1'}">正常</c:if>
				<c:if test="${backRecordItem.validity=='0'}">作废</c:if>
				</ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="10%" property="hasComplete" title="是否完工">
				<c:if test="${backRecordItem.hasComplete=='1'}">是</c:if>
				<c:if test="${backRecordItem.hasComplete=='0'}">否</c:if>
				</ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="7%" property="satisfiedDegree" title="满意度"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="8%" property="recorder" title="记录人"></ec:ceColumn>
			   <ec:ceColumn headerCell="pmsHeadrCell" width="12%" property="recordTime" title="记录时间" cell="date" format="yyyy-MM-dd HH:mm"></ec:ceColumn>
			   <ec:parameter name="dispatchFormId" value="${dispatchFormId}"></ec:parameter>

			</ec:ceRow>
	</ec:ceTable>
</div>
<!--------------------右键菜单---------------------->
<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_rightmenu">
  <table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
      <pms:AuthTag authName="customerService_feedbackRecordAction.do?method=navigateFeedbackRecordAdd">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.addBackRecord();return false;"onFocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="新增"/>&nbsp;新 增</a></td>
    </tr>
    </pms:AuthTag>
    <pms:AuthTag authName="customerService_feedbackRecordAction.do?method=navigateFeedbackRecordDisannul">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#" onFocus="this.blur()" onClick="parent.disannulBackRecord();return false;"><img src="${ctx}/images/ico_delete.gif" alt="作废" border="0" align="absbottom"/>&nbsp;作 废</a></td>
        </tr>
      </pms:AuthTag>

      </table></td>
    </tr>
  </table>
  <script type="text/javascript">

	var div1=document.getElementById('quick_rightmenu');
	if(div1.getElementsByTagName("tr").length==1){
	div1.innerHTML="";
	}


</script>
</div>
</body>
</html>